.class Lcom/xingbook/park/fragment/h;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method constructor <init>(Lcom/xingbook/park/fragment/HomeMineFragment;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/xingbook/park/fragment/h;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 6

    const/4 v3, 0x1

    const/4 v5, 0x0

    iget-object v0, p0, Lcom/xingbook/park/fragment/h;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/park/fragment/HomeMineFragment;

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {v0}, Lcom/xingbook/park/fragment/HomeMineFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    check-cast v1, Lcom/xingbook/park/activity/HomeActivity;

    if-eqz v1, :cond_0

    iget v2, p1, Landroid/os/Message;->what:I

    packed-switch v2, :pswitch_data_0

    goto :goto_0

    :pswitch_0
    iget-object v2, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v2, Lcom/xingbook/park/e/c;

    iget v3, p1, Landroid/os/Message;->arg1:I

    const/16 v4, 0xc8

    if-ne v3, v4, :cond_3

    invoke-virtual {v2}, Lcom/xingbook/park/e/c;->a()I

    move-result v1

    if-nez v1, :cond_2

    invoke-static {v0}, Lcom/xingbook/park/fragment/HomeMineFragment;->a(Lcom/xingbook/park/fragment/HomeMineFragment;)V

    :cond_2
    :goto_1
    invoke-static {v0, v5}, Lcom/xingbook/park/fragment/HomeMineFragment;->a(Lcom/xingbook/park/fragment/HomeMineFragment;Z)V

    goto :goto_0

    :cond_3
    const-string v2, "\u7531\u4e8e\u7f51\u7edc\u539f\u56e0\u672a\u80fd\u52a0\u8f7d\u8d26\u53f7\u4fe1\u606f\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\uff01"

    invoke-static {v1, v2, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    goto :goto_1

    :pswitch_1
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Ljava/lang/String;

    invoke-virtual {v1, v0}, Lcom/xingbook/park/activity/HomeActivity;->a(Ljava/lang/String;)V

    goto :goto_0

    :pswitch_2
    invoke-virtual {v1}, Lcom/xingbook/park/activity/HomeActivity;->c()V

    const-string v0, "\u7f13\u5b58\u6e05\u9664\u6210\u529f\uff01"

    invoke-static {v1, v0, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0

    :pswitch_3
    invoke-virtual {v1}, Lcom/xingbook/park/activity/HomeActivity;->c()V

    const-string v0, "\u7f13\u5b58\u6e05\u9664\u5931\u8d25\uff0c\u7a0d\u540e\u518d\u8bd5\u5427\uff01"

    invoke-static {v1, v0, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method
